/*
 * Triangle.h
 *
 *  Created on: 25/05/2010
 *      Author: greenben
 */

#ifndef TRIANGLE_H_
#define TRIANGLE_H_
#include "Object3D.h"
#include "vectors.h"

class Triangle: public Object3D {
public:
	Triangle();
	Triangle(Vec3f& v0,Vec3f& v1,Vec3f& v2,Vec3f& current_object_color);
	virtual ~Triangle();
	virtual bool intersect(const Ray &r, Hit &h, float tmin);
};

#endif /* TRIANGLE_H_ */
